From 06f66c185ab6315be6d429dceeb2f2e4873b654e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Thu, 15 Apr 2010 21:10:32 +0200 Subject: [PATCH] Fix compilation warning: set a default case in switchs --- gtk/gtktoolbar.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index a543791387..b56abdf462 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -4303,6 +4303,10 @@ toolbar_content_get_goal_allocation (ToolbarContent *content, */ g_assert_not_reached (); break; + + default: + g_assert_not_reached (); + break; } } @@ -4311,7 +4315,7 @@ toolbar_content_get_allocation (ToolbarContent *content, GtkAllocation *allocation) { GtkToolbarChild *child; - + switch (content->type) { case TOOL_ITEM: @@ -4326,6 +4330,10 @@ toolbar_content_get_allocation (ToolbarContent *content, else *allocation = child->widget->allocation; break; + + default: + g_assert_not_reached (); + break; } } -- 2.30.2